package com.winning.ds.common.exception;

public class VerifyCodeException  extends RuntimeException{

    private static final long serialVersionUID = 1L;

    private String msg;
    private int code = 10001; //验证码失败返回错误代码

    public VerifyCodeException(String msg) {
        super(msg);
        this.msg = msg;
    }
    public VerifyCodeException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }


    public VerifyCodeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String msg, int code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
